<?php defined('KX_ROOT') || exit('Permission denied');?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title><?php include \Kuxin\View::parseTpl($tkd['title']);?></title>
    <meta name="keywords" content="<?php include \Kuxin\View::parseTpl($tkd['keywords']);?>">
    <meta name="description" content="<?php include \Kuxin\View::parseTpl($tkd['description']);?>">
    <link rel="stylesheet" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/css/global.css"/>
    <link rel="stylesheet" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/css/style.css"/>
    <link rel="shortcut icon" type="image/ico" href="/favicon.ico"/>
    <meta name="author" content="www.ptcms.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width"/>
    <meta name="applicable-device" content="pc">
    <meta http-equiv="mobile-agent" content="format=html5; url=<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "mobileurl");?><?php echo $_SERVER['REQUEST_URI'];?>">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <link rel="canonical" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "pcurl");?><?php echo $_SERVER['REQUEST_URI'];?>"/>
</head>
<body>

<!-- 导航栏 -->
<div class="pt-top-nav">
    <ul class="content">
        <li class="fl">
            欢迎访问<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?>小说网
        </li>
        <li class="fr m">
            <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/shortcut_icon.png" class="pt-shortcut-icon">
            <span class="cursor color4 lh100" onclick="toDesktop('<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "siteurl");?>','<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?>')">桌面快捷</span>
        </li>
        <li class="fr mr20">
            <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/star_icon.png" class="pt-index-icon">
            <span class="cursor color4 lh100" onclick="addFavorite(document.title,window.location);">加入收藏</span>
        </li>
        <li class="fr mr20">
            <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/index_icon.png" class="pt-index-icon">
            <span class="cursor color4 lh100" onclick="setHome(this);">设为首页</span>
        </li>
    </ul>
</div>
<div class="w100 pt-head-bg">
    <div class="pt-head">
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/static/image/logo.png" class="pt-logo" title="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?>">
        <div class="pt-search-box">
            <form action="<?php echo \Kuxin\Helper\Url::build("novel.search.result",[],"");?>">
                <div class="pt-serachbg">
                    <input type="text" name="searchkey" placeholder="请输入您要搜索的书名" class="pt-serarch-input" value="<?php echo $_GET['searchkey'];?>">
                </div>
                <button type="submit" class="pt-search-btn">
                    <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/search.png" class="pt-search-icon">
                </button>
            </form>
        </div>
        <ul class="inline-block size14 color4 fr pt-head-list">
            <li>
                <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/person_icon.png" class="pt-person-icon">
                <?php if(($islogin)):?>
                <span class="color2 lh100">
                    <a href="<?php echo \Kuxin\Helper\Url::build("user.index.index",[],"");?>" class="color2"><?php echo $userinfo['nickname']?:$userinfo['name'];?></a>
                    <span>|</span>
                    <a href="<?php echo \Kuxin\Helper\Url::build("user.pay.recharge",[],"");?>" class="color2">充值</a>
                </span>
                <?php else:?>
                <span class="color2 lh100"><a title="登录" href="<?php echo \Kuxin\Helper\Url::build("user.auth.login",[],"");?>" class="color2">登录</a> | <a title="注册" href="<?php echo \Kuxin\Helper\Url::build("user.auth.register",[],"");?>" class="color2">注册</a></span>
                <?php endif;?>
            </li>
            <li>
                <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/book_icon.png" class="pt-book-icon">
                <a rel="nofollow" href="<?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?>" class="color4 lh100">我的书架</a>
            </li>
            <li class="inline-block">
                <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/history_icon.png" class="pt-history-icon">
                <a rel="nofollow" href="<?php echo \Kuxin\Helper\Url::build("user.history.index",[],"");?>" class="color4 lh100">阅读历史</a>
            </li>
        </ul>
    </div>
</div>

<!-- 导航栏 -->
<div class="pt-navbg">
    <div class="pt-nav">
        <a title="首页" href="<?php echo \Kuxin\Helper\Url::build("index.index",[],"");?>"<?php if($pagesign=='index'):?> class="pt-active"<?php endif;?>>首页</a>
        <a title="排行" href="<?php echo \Kuxin\Helper\Url::build("novel.rank.index",[],"");?>"<?php if($pagesign=='rank'):?> class="pt-active"<?php endif;?>>排行</a>
        <a title="分类" href="<?php echo \Kuxin\Helper\Url::build("novel.category.index",[],"");?>"<?php if($pagesign=='category'):?> class="pt-active"<?php endif;?>>分类</a>
        <a title="完本" href="<?php echo \Kuxin\Helper\Url::build("novel.over.index",[],"");?>"<?php if($pagesign=='over'):?> class="pt-active"<?php endif;?>>完本</a>
        <a title="书单" href="<?php echo \Kuxin\Helper\Url::build("booklist.booklist.index",[],"");?>"<?php if($pagesign=='booklist'):?> class="pt-active"<?php endif;?>>书单</a>
        <a title="专题" href="<?php echo \Kuxin\Helper\Url::build("special.index",[],"");?>"<?php if($pagesign=='special'):?> class="pt-active"<?php endif;?>>专题</a>
        <a title="用户中心" href="<?php echo \Kuxin\Helper\Url::build("user.index.index",[],"");?>" class="fr<?php if($pagesign=='user'):?>  pt-active<?php endif;?>">用户中心</a>
        <a title="原创专区" href="<?php echo \Kuxin\Helper\Url::build("author.author.index",[],"");?>" class="fr" target="_blank">原创专区</a>
    </div>
</div>
<!-- 内容 -->
<div class="pt-content">
    <div class="pt-crumb">
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/crumb_icon.png" class="pt-crumb-icon">
        <span class="color5">
            <a title="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?>" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "siteurl");?>"><?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?></a> >
            <a title="<?php echo $category['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.category.list",['categoryid'=>$category['id'],'key'=>$category['key']],"");?>"
               class="color5"><?php echo $category['name'];?></a> >
            <a title="<?php echo $novel['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin']],"");?>"
               class="color5"><?php echo $novel['name'];?></a> >
            <a title="<?php echo $chapter['name'];?>"
               href="<?php echo \Kuxin\Helper\Url::build("novel.chapter.read",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin'],'chapterid'=>$chapter['id']],"");?>"
               class="color7"><?php echo $chapter['name'];?></a>
        </span>
    </div>

    <!-- 阅读内容 -->
    <div class="pt-read-cont">
        <div class="pt-read-title">
            <h1 class="lh100 size26 mb20"><a title="<?php echo $chapter['name'];?>"
                                             href="<?php echo \Kuxin\Helper\Url::build("novel.chapter.read",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin'],'chapterid'=>$chapter['id']],"");?>"
                                             class="color7"><?php echo $novel['name'];?> <?php echo $chapter['name'];?></a></h1>
            <div class="lh100 color4">
                <span class="mr20">作者：<a title=""
                                         href="<?php echo \Kuxin\Helper\Url::build("author.space.index",['authorid'=>$author['id'],'pinyin'=>$author['pinyin'],'name'=>$author['name']],"");?>"><?php echo $author['name'];?></a></span>
                <span class="mr20">分类：<a title="<?php echo $category['name'];?>"
                                         href="<?php echo \Kuxin\Helper\Url::build("novel.category.list",['categoryid'=>$category['id'],'key'=>$category['key']],"");?>"
                                         class="color5"><?php echo $category['name'];?></a></span>
                <span class="mr20">更新时间：<?php echo \Kuxin\View::date($chapter['time'],"Y-m-d H:i:s");?></span>
                <span class="mr20">来源：<a title="<?php echo $site['name'];?>" href="<?php echo $chapter['source'];?>"
                                         rel="nofollow"><?php echo $site['name'];?></a></span>
            </div>
        </div>
        <div class="size16 color5 pt-read-text">
            <?php echo showchapter($chapter['content']);?>
        </div>
        <?php if($chapter['type'] == \App\Model\Novel\Chapter::TYPE_TOLL && ($novel['type'] == \App\Model\Novel\Novel::TYPE_TOLL || $novel['type'] == \App\Model\Novel\Novel::TYPE_VIP_FREE && !\App\Model\User\User::I()->isVip($userId))):?>
            <?php $issubscribe=\Kuxin\Block::show('chapter.issubscribe', ['userid'=>$userinfo['id'],'novelid'=>$novel['id'],'chapterid'=>$chapter['id']]);?>
            <?php if(!$issubscribe):?>
            <div class="pt-read-toll" data-balance="<?php echo $userinfo['assets']['balance'];?>">
                <h1 class="size24 color32 mt40">本章为付费章节，需要订阅后才能阅读</h1>
                <?php $price=\Kuxin\Block::show('chapter.calculateprice', ['novelid'=>$novel['id'],'userid'=>$userinfo['id']]);?>
                <a class="inline-block mt50 mlr10" data-price="<?php echo $price;?>"
                   href="<?php echo \Kuxin\Helper\Url::build("novel.novel.subscribe",['novelid'=>$novel['id'],'chapters'=>$chapter['id'],'all'=>1],"");?>">
                    <span class="block size20 bold mt15">全部订阅</span><?php echo $price;?><?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "user.money_caption");?>
                </a>
                <?php $charge=\Kuxin\Block::show('novel.charge', ['novelid'=>$novel['id']]);?>
                <?php  $charge = $userinfo['vip_expire_time'] < time()?$charge['words_money']:$charge['words_vip_money'];?>
                <?php $price=\Kuxin\Block::show('chapter.calculatepricebyprice', ['wordsnum'=>$chapter['words'],'price'=>$charge]);?>
                <a class="inline-block mt50 mlr10" data-price="<?php echo $price;?>"
                   href="<?php echo \Kuxin\Helper\Url::build("novel.novel.subscribe",['novelid'=>$novel['id'],'chapters'=>$chapter['id']],"");?>">
                    <span class="block size20 bold mt15">订阅本章</span><?php echo $price;?><?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "user.money_caption");?>
                </a>
                <div class="mt50">
                    <input type="checkbox" id="auto_subscribe" checked="checked">
                    <label for="auto_subscribe">不再显示订阅提醒,自动订阅下一章</label>
                </div>
            </div>
            <?php endif;?>
        <?php endif;?>
    </div>
    <!-- 左侧 -->
    <div class="pt-left">
        <div class="pt-catalogue">
            <div class="cursor pt-catalogue-btn">
                <span class="pt-read-set-btn"></span>
                <div class="pt-catalogue-text">目录</div>
            </div>
            <!-- 弹出 -->
            <div class="pd20 pt-catalogue-pop pt-set-modal dir-content">

            </div>
        </div>
        <div class="pt-set">
            <div class="cursor pt-set-btn">
                <span class="pt-read-set-btn"></span>
                <div>设置</div>
            </div>

            <!-- 设置弹出 -->
            <div class="pd20 pt-set-pop pt-set-modal">
                <div class="pt-set-title">
                    <span class="fl">设置</span>
                    <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/read_close.png"
                         class="fr img-15 pt-set-close cursor">
                </div>
                <div class="pt-set-list">
                    <div class="mt20 mb25 pt-setcolor">
                        <span class="fl mr40 size14 color62">阅读主题</span>
                        <div class="fl pt-setcolor-list">
                            <span class="mr20 pt-setcolor-01 pt-setcolor-select"></span>
                            <span class="mr20 pt-setcolor-02"></span>
                            <span class="mr20 pt-setcolor-03"></span>
                            <span class="mr20 pt-setcolor-04"></span>
                            <span class="mr20 pt-setcolor-05"></span>
                            <span class="pt-setcolor-06"></span>
                        </div>
                    </div>
                    <div class="mt20 mb25 size14 color62 pt-setfont">
                        <span class="fl mr40">字体风格</span>
                        <div class="fl pt-setfont-list">
                            <span class="mr20 pt-setfont-01 pt-setfont-select">雅黑</span>
                            <span class="mr20 pt-setfont-02">宋体</span>
                            <span class="mr20 pt-setfont-03">楷书</span>
                            <span class="mr20 pt-setfont-04">卡通</span>
                        </div>
                    </div>
                    <div class="mt20 mb25 size14 color62 pt-setsize">
                        <span class="fl mr40">字体风格</span>
                        <div class="fl pt-setsize-list">
                            <span class="mr20 pt-setsize-01">小</span>
                            <span class="mr20 pt-setsize-02 pt-setsize-select">适中</span>
                            <span class="mr20 pt-setsize-03">偏大</span>
                            <span class="mr20 pt-setsize-04">超大</span>
                        </div>
                    </div>
                    <div class="pt-setsave">
                        <div class="mr20 cursor pt-setsave-btn">保存设置</div>
                        <div class="cursor pt-setsave-regain">恢复默认</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="pt-phone">
            <div class="cursor pt-phone-btn">
                <span class="pt-read-set-btn"></span>
                <div>手机</div>
            </div>
            <!-- 手机弹出 -->
            <div class="pd20 pt-phone-pop pt-set-modal">
                <div class="pt-phone-title">
                    <span class="fl">手机阅读</span>
                    <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/read_close.png"
                         class="fr img-15 pt-phone-close cursor">
                </div>
                <div class="pt-phone-list">
                    <div class="pt-code"></div>
                    <div>扫码获取链接，使用浏览器打开</div>
                    <div>书架同步，随时随地，手机阅读</div>
                </div>
            </div>
        </div>
        <?php $ismark=\Kuxin\Block::show('mark.check', ['userid'=>$userinfo['id'],'novelid'=>$novel['id'],'chapterid'=>$chapter['id']]);?>
        <div class="pt-collect">
            <div class="cursor pt-collect-btn btn-mark <?php echo \Kuxin\View::default($ismark,"
            ","active");?>">
            <span class="pt-read-set-btn"></span>
            <div class="pt-collect-text"><?php echo \Kuxin\View::default($ismark,"收藏","已收藏");?></div>
        </div>
    </div>
    <div class="pt-bookinfo cursor">
        <a title="<?php echo $novel['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin']],"");?>">
            <div class="cursor pt-bookinfo-btn">
                <span class="pt-read-set-btn"></span>
                <div>书页</div>
            </div>
        </a>
    </div>
    <div class="pt-switch cursor">
        <div class="cursor pt-switch-btn">
            <span class="pt-read-set-btn"></span>
            <div>换源</div>
        </div>
        <!-- 换源弹出 -->
        <div class="pd20 pt-switch-pop pt-set-modal source-content"></div>
    </div>
    <div class="pt-tts cursor">
        <div class="cursor pt-tts-btn">
            <span class="pt-read-set-btn"></span>
            <div>听书</div>
        </div>
        <!-- 手机弹出 -->
        <div class="pd20 pt-tts-pop pt-set-modal">
            <div class="pt-set-title">
                <span class="fl">听书</span>
                <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/read_close.png"
                     class="fr img-15 pt-set-close cursor">
            </div>
            <div class="pt-set-list">
                <div class="mt20 mb25 size14 color62 pt-setfont">
                    <span class="fl mr40">发声</span>
                    <div class="fl pt-pre-list">
                        <span class="mr20 pt-tts-set-btn" data-value="1">男声</span>
                        <span class="mr20 pt-tts-set-btn pt-tts-set-btn-select" data-value="0">女生</span>
                        <span class="mr20 pt-tts-set-btn" data-value="3">逍遥</span>
                        <span class="mr20 pt-tts-set-btn" data-value="4">软萌</span>
                    </div>
                </div>
                <div class="mt20 mb25 size14 color62 pt-setsize">
                    <span class="fl mr40">语速</span>
                    <div class="fl pt-spd-list">
                        <span class="mr20 pt-tts-set-btn" data-value="0.7">慢</span>
                        <span class="mr20 pt-tts-set-btn pt-tts-set-btn-select" data-value="1">适中</span>
                        <span class="mr20 pt-tts-set-btn" data-value="1.5">快</span>
                        <span class="mr20 pt-tts-set-btn" data-value="2">超快</span>
                    </div>
                </div>
                <div class="mt20 mb25 size14 color62 pt-setsize">
                    <span class="fl mr40">音量</span>
                    <div class="fl pt-vol-list">
                        <span class="mr20 pt-tts-set-btn" data-value="0.5">小</span>
                        <span class="mr20 pt-tts-set-btn" data-value="0.7">适中</span>
                        <span class="mr20 pt-tts-set-btn pt-tts-set-btn-select" data-value="1">大</span>
                    </div>
                </div>
                <div class="mr20 cursor play">开始播放</div>
            </div>
        </div>
    </div>
</div>
<!-- 右侧 -->
<div class="pt-right">
    <div class="cursor pt-comment">
        <a title="<?php echo $novel['name'];?>讨论区" href="<?php echo \Kuxin\Helper\Url::build("novel.comment.list",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin']],"");?>">
            <div class="pt-comment-btn">
                <span class="pt-read-set-btn"></span>
                <div>评论</div>
            </div>
        </a>
    </div>
    <div class="cursor pt-recomment">
        <div class="pt-recomment-btn">
            <span class="pt-read-set-btn"></span>
            <div>推荐</div>
        </div>
    </div>
    <div class="cursor pt-feedback">
        <div class="pt-feedback-btn">
            <span class="pt-read-set-btn"></span>
            <div>反馈</div>
        </div>
    </div>
    <div class="cursor pt-return">
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/read_return.png" class="mt20 pt-return-icon cursor">
    </div>
</div>
<!-- 章节报错 -->
<div class="pt-error pt-set-modal">
    <div class="size26 color32 pt-error-title">
        <span>章节报错</span>
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/read_close.png" class="img-15 pt-error-close cursor">
    </div>
    <div class="pt-error-chapter">
        <span class="mr20 size16 color32 inline-block">当前章节</span>
        <input class="color62 pt-error-chapter-cont" id="feedback_title" placeholder="<?php echo $chapter['name'];?>" disabled></input>
    </div>
    <div class="relative pt-error-cont">
        <span class="fl mr20 size16 color32 inline-block">报错内容</span>
        <textarea id="feedback_content" placeholder="请描述您所遇到的问题"
                  class="color62 pt10 pl20 color9 pt-error-text"></textarea>
    </div>
    <div class="pt-submit" id="feedback_submit">提交</div>
</div>

<!-- 底部按钮 -->
<div class="pt-read-btn">
    <a class="btn-mark <?php echo \Kuxin\View::default($ismark,"","active");?>"
    data-is-mark="<?php echo $ismark;?>"><span><?php echo \Kuxin\View::default($ismark,"加入收藏","已收藏");?></span></a>
    <a class="pt-prechapter" href="<?php echo $prevurl;?>">< <?php echo \Kuxin\View::default($prevpage,"上一章","上一页");?></a>
    <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin']],"");?>">章节列表</a>
    <a class="pt-nextchapter" href="<?php echo $nexturl;?>"><?php echo \Kuxin\View::default($nextpage,"下一章","下一页");?> ></a>
    <a class="pt-feedback-btn" href="javascript:void(0)">错误举报</a>
</div>
</div>

<div class="pt-read-set-bg"></div>
<script id="dirTpl" type="text/html">
    <div class="pt-catalogue-title">
        <span class="fl"><?php echo $novel['name'];?>目录</span>
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/read_close.png"
             class="fr img-15 pt-catalogue-close cursor">
    </div>
    <div class="ptb10 pt-catalogue-list">
        {{# $.each(d,function(k,v){ }}{{# var cc=(v.id== '<?php echo $chapter['id'];?>') ?'color2':'color62' }}
        <div class="ptb5 size16 pt-catalogue-item" data-chapter-id="{{ v.id }}">
            <a href="{{ v.url }}">
                <div class="fl {{ cc }}">{{ v.name }}</div>
            </a>
            {{# if(!v.subscribe){ }}
            <img class="fr" style="margin-top: 4px;margin-right: 30px" src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/lock.png" alt="">
            {{#}}}
        </div>
        {{# }) }}
    </div>
</script>
<script id="sourceTpl" type="text/html">
    <div class="pt-switch-title">
        <span class="fl mr30">换源</span>
        <span class="fl color92">共 {{ d.length }} 条小说来源</span>
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/images/read_close.png" class="fr img-15 pt-switch-close cursor">
    </div>
    <div class="pt-switch-list">
        {{# $.each(d,function(k,v){ }}{{# var cc=(v.site.id== '<?php echo $site['id'];?>') ?'color2':'color62' }}
        <div class="size16 ptb20 pt-switch-item">
            <a href="{{ v.url }}">
                <span class="pt-switch-item-01 {{ cc }}">{{ v.site.name }}</span>
                <span class="compulsory-row-one pt-switch-item-03 {{ cc }}">{{ v.name }}</span>
            </a>
        </div>
        {{# }) }}
    </div>
</script>
<!-- 底部版权-->
<div class="pt-copyright">
    <div class="pt-copyright-line"></div>
    <div class="color2 aboutlink">
        <?php $list=\Kuxin\Block::show('page.list', []);?>
        <?php if(is_array($list)): foreach($list as $key =>$loop):?>
        <a href="<?php echo \Kuxin\Helper\Url::build("page.detail",['pageid'=>$loop['id'],'key'=>$loop['key']],"");?>" title="<?php echo $loop['name'];?>"><?php echo $loop['name'];?></a>
        <?php endforeach; endif;?>
    </div>
    <div class="color4 footer-info" style="margin-top:28px;">Copyright © 2009 - 2019 <a href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "siteurl");?>" target="_blank"><?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?></a>. All Rights Reserved . 版权所有<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?></div>
    <div class="color4 footer-info">本站内容系<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?>根据您的指令搜索各大小说站得到的链接列表，不代表<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?>赞成被搜索网站的内容或立场</div>
    <div class="color4 footer-info">如果版权人认为在本站放置您的作品有损您的利益，请发邮件至“<?php if(\Kuxin\Helper\Arr::getValue($_kxcms_config, "email")):?><?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "email");?><?php else:?><?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "qq");?>@qq.com<?php endif;?>”，本站确认后将会立即删除。</div>
    <div class="color4 footer-info">Power by <a href="http://www.ptcms.com" target="_blank">PT聚合小说搜索聚合程序 <?php echo PRO_VERSION;?> Build<?php echo PRO_TIME;?></a>，模版设计：<a href="http://www.pakey.net" target="_blank">Pakey</a>，<a href="http://www.miitbeian.gov.cn/" target="_blank" rel="nofollow"><?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "beian");?></a></div>
    <div class="color4 footer-info"><?php echo \Kuxin\Response::runinfo();?></div>
</div>
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/js/jquery-3.3.1.js"></script>
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/js/layer/layer.js"></script>
<div class="none">
    <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "tongji.pc");?>
    <?php if(\Kuxin\Helper\Arr::getValue($_kxcms_config, "app.use_cdn")):?>
    <script src="/api/stat/novel/info.js"></script>
    <script src="/api/stat/novel/read.js"></script>
    <?php endif;?>
</div>

<script type="text/javascript">
    var __ADD_STAR = '<?php echo \Kuxin\Helper\Url::build("user.star.add",[],"");?>'
        , __NOVEL_NAME = '<?php echo $novel['name'];?>'
        , __ADD_MARK = '<?php echo \Kuxin\Helper\Url::build("user.mark.add",[],"");?>'
        , __DEL_MARK = '<?php echo \Kuxin\Helper\Url::build("user.mark.del",[],"");?>'
        , __ADD_VOTE = '<?php echo \Kuxin\Helper\Url::build("user.vote.add",[],"");?>'
        , __RATING_COMMENT = '<?php echo \Kuxin\Helper\Url::build("novel.comment.rating",[],"");?>'
        , __ADD_COMMENT = '<?php echo \Kuxin\Helper\Url::build("novel.comment.add",[],"");?>'
        , __ADD_FEEDBACK = '<?php echo \Kuxin\Helper\Url::build("novel.novel.feedback",[],"");?>'
        , __SHOW_TYPE = '<?php echo $show_type;?>'

        , __NOVEL_ID = '<?php echo $novel['id'];?>'
        , __CHAPTER_ID = '<?php echo $chapter['id'];?>'
        , __SITE_ID_QUERY = '<?php echo $siteid;?>'

        , __API_CHAPTER_SAME = '<?php echo \Kuxin\Helper\Url::build("api.novel.chapter.same",[],'json');?>'
        , __API_NOVEL_DIR = '<?php echo \Kuxin\Helper\Url::build("api.novel.novel.dir",[],'json');?>'
        , __API_CHAPTER_TRANSCODE = '<?php echo \Kuxin\Helper\Url::build("api.novel.chapter.transcode",['novelid'=>$novel['id'],'chapterid'=>$chapter['id']],"");?>'

        , __PREVPAGE = '<?php echo $prevurl;?>'
        , __NEXTPAGE = '<?php echo $nexturl;?>'
        , __DIR = '<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin']],"");?>'

        , __MOBILE_URL = '<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "mobileurl");?><?php echo $_SERVER['REQUEST_URI'];?>'
        , __CHAPTER_PAGE = '<?php echo $current_page;?>';
</script>
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/js/laytpl.js"></script>
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/js/read.js"></script>
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxwebno1/js/jquery.qrcode.min.js"></script>
<script>
    $('.pt-read-toll a').click(function () {
        if (parseInt($(this).data('price')) > parseInt($(this).parent().data('balance'))) {
            layer.msg('余额不足，请先充值后再试。', {
                time: 0,
                btn: ['去充值', '取消'],
                yes: function (index) {
                    window.location.href = '<?php echo \Kuxin\Helper\Url::build("user.pay.recharge",[],"");?>';
                }
            });
            return false;
        }
        $(this).attr('href', $(this).attr('href') + ($('#auto_subscribe').prop('checked') ? '&autosubscribe=1' : ''));
    });
</script>
</body>
</html>